<%= form_for(@post, :html => {:class => 'well fl'}) do |f| %>
  <% if @post.errors.any? %>
    <div class="alert alert-block alert-error fade in">
      <h3 class="alert-heading"><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>
      <ul>
      <% @post.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  
  <div>
    <%= f.label :body %>
    <%= f.text_area :body, :rows => 4, :cols => 30 %>
  </div>

  <div class="actions">
    <br><%= f.submit 'Send', :class => 'btn btn-primary'  %> | <%= link_to 'Back', posts_path, :class => 'btn' %></br>
  </div>
<% end %>